<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Login</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="description" content="">
    <meta name="keywords" content="">

    <!-- Base Css Files -->
    <link href="/static/admin/assets/libs/jqueryui/ui-lightness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/fontello/css/fontello.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/animate-css/animate.min.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/nifty-modal/css/component.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/magnific-popup/magnific-popup.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/ios7-switch/ios7-switch.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/pace/pace.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/sortable/sortable-theme-bootstrap.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/bootstrap-datepicker/css/datepicker.css" rel="stylesheet"/>
    <link href="/static/admin/assets/libs/jquery-icheck/skins/all.css" rel="stylesheet"/>
    <!-- Code Highlighter for Demo -->
    <link href="/static/admin/assets/libs/prettify/github.css" rel="stylesheet"/>

    <!-- Extra CSS Libraries Start -->
    <link href="/static/admin/assets/css/style.css" rel="stylesheet" type="text/css"/>
    <!-- Extra CSS Libraries End -->
    <link href="/static/admin/assets/css/style-responsive.css" rel="stylesheet"/>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/static/admin/assets/js/html5shiv.js"></script>
    <script src="/static/admin/assets/js/1.3.0/respond.min.js"></script>
    <![endif]-->

    <link rel="shortcut icon" href="/static/admin/assets/img/favicon.ico">
    <script src="/static/admin/assets/js/jquery.min.js"></script>
    <script src="/static/admin/assets/js/toastr.min.js"></script>
</head>
<body class="fixed-left login-page">
<!-- Modal Start -->
<!-- Modal Task Progress -->
<div class="md-modal md-3d-flip-vertical" id="task-progress">
    <div class="md-content">
        <h3><strong>Task Progress</strong> Information</h3>
        <div>
            <p>CLEANING BUGS</p>
            <div class="progress progress-xs for-modal">
                <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="80" aria-valuemin="0"
                     aria-valuemax="100" style="width: 80%">
                    <span class="sr-only">80&#37; Complete</span>
                </div>
            </div>
            <p>POSTING SOME STUFF</p>
            <div class="progress progress-xs for-modal">
                <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="80" aria-valuemin="0"
                     aria-valuemax="100" style="width: 65%">
                    <span class="sr-only">65&#37; Complete</span>
                </div>
            </div>
            <p>BACKUP DATA FROM SERVER</p>
            <div class="progress progress-xs for-modal">
                <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="80" aria-valuemin="0"
                     aria-valuemax="100" style="width: 95%">
                    <span class="sr-only">95&#37; Complete</span>
                </div>
            </div>
            <p>RE-DESIGNING WEB APPLICATION</p>
            <div class="progress progress-xs for-modal">
                <div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="80" aria-valuemin="0"
                     aria-valuemax="100" style="width: 100%">
                    <span class="sr-only">100&#37; Complete</span>
                </div>
            </div>
            <p class="text-center">
                <button class="btn btn-danger btn-sm md-close">Close</button>
            </p>
        </div>
    </div>
</div>

<!-- Modal Logout -->
<div class="md-modal md-just-me" id="logout-modal">
    <div class="md-content">
        <h3><strong>Logout</strong> Confirmation</h3>
        <div>
            <p class="text-center">Are you sure want to logout from this awesome system?</p>
            <p class="text-center">
                <button class="btn btn-danger md-close">Nope!</button>
                <a href="{}" class="btn btn-success md-close">Yeah, I'm sure</a>
            </p>
        </div>
    </div>
</div>        <!-- Modal End -->
<!-- Begin page -->
<div class="container">
    <div class="full-content-center" style="margin-bottom:200px">
        <p class="text-center"><a href="#"><img src="/static/admin/assets/img/login-logo.png" alt="Logo"></a></p>
        <div class="login-wrap animated flipInX">
            <div class="login-block">
                <img src="/static/index/face/batman.jpg" class="img-circle not-logged-avatar">
                    <form id="my" name="regForm" role="form" method="post">
                        <div class="form-group login-input">
                            <i class="fa fa-user overlay"></i>
                            <input type="password" class="form-control text-input pwd" placeholder="输入密码" name="pwd">
                            <p id="ptab">* 必填项,请输入6-18位的密码</p>
                        </div>
                        <div class="form-group login-input">
                            <i class="fa fa-key overlay"></i>
                            <input type="password" class="form-control text-input repwd" placeholder="密码" name="repwd">
                        </div>
                         
                        <div class="col-sm-12">
                                <input type="hidden" name="tel" class="tel" value="{$list.tel}">
                            <buttons type="submit" class="btn btn-success btn-block login">确认修改
                            </buttons>
                        </div>
                        
                        
                    </form>
            </div>
    </div>
</div>




<!-- the overlay modal element -->
<div class="md-overlay"></div>
<!-- End of eoverlay modal -->
{js href="/static/index/js/jquery.js"}
{js href="/static/index/js/bootstrap.min.js"}
<script>
        $(function(){
            $('.login').click(function(){
                var pwd = $('.pwd').val();
                var repwd = $('.repwd').val();
                var tel = $('.tel').val();
                var info = $('#my input').serialize();
                if(pwd.length == 0){
                    alert('密码不能为空');
                    exit;
                }
                if(pwd.length < 6 || pwd.length > 18){
                    alert('请输入6-18位的密码！');
                    exit;
                }
                if(pwd != repwd){
                    alert('两次输入密码不一致,请重新输入');
                }
                $.ajax({
                    type : 'post',
                    url : '/indexpwd/',
                    data : info,
                    datatype : 'json',
                    success : function(data){
                        if(data.status){
                            alert('密码修改成功!');
                            window.location.href = '/';
                        }else{
                            alert('密码修改失败！');
                        }
                    },
                    error : function(){
                        alert('系统错误!');
                    }
                });
            });
        });





</script>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

<script src="/static/admin/assets/libs/jquery/jquery-1.11.1.min.js"></script>
<script src="/static/admin/assets/libs/bootstrap/js/bootstrap.min.js"></script>
<script src="/static/admin/assets/libs/jqueryui/jquery-ui-1.10.4.custom.min.js"></script>
<script src="/static/admin/assets/libs/jquery-ui-touch/jquery.ui.touch-punch.min.js"></script>
<script src="/static/admin/assets/libs/jquery-detectmobile/detect.js"></script>
<script src="/static/admin/assets/libs/jquery-animate-numbers/jquery.animateNumbers.js"></script>
<script src="/static/admin/assets/libs/ios7-switch/ios7.switch.js"></script>
<script src="/static/admin/assets/libs/fastclick/fastclick.js"></script>
<script src="/static/admin/assets/libs/jquery-blockui/jquery.blockUI.js"></script>
<script src="/static/admin/assets/libs/bootstrap-bootbox/bootbox.min.js"></script>
<script src="/static/admin/assets/libs/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="/static/admin/assets/libs/jquery-sparkline/jquery-sparkline.js"></script>
<script src="/static/admin/assets/libs/nifty-modal/js/classie.js"></script>
<script src="/static/admin/assets/libs/nifty-modal/js/modalEffects.js"></script>
<script src="/static/admin/assets/libs/sortable/sortable.min.js"></script>
<script src="/static/admin/assets/libs/bootstrap-fileinput/bootstrap.file-input.js"></script>
<script src="/static/admin/assets/libs/bootstrap-select/bootstrap-select.min.js"></script>
<script src="/static/admin/assets/libs/bootstrap-select2/select2.min.js"></script>
<script src="/static/admin/assets/libs/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="/static/admin/assets/libs/pace/pace.min.js"></script>
<script src="/static/admin/assets/libs/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="/static/admin/assets/libs/jquery-icheck/icheck.min.js"></script>

<!-- Demo Specific JS Libraries -->
<script src="/static/admin/assets/libs/prettify/prettify.js"></script>

<script src="/static/admin/assets/js/init.js"></script>
</body>
</html>1111